package com.zte.purchase.dao;

import com.zte.purchase.model.CProduct;
import com.zte.purchase.model.ProductCondition;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Mapper
@Repository
public interface IProductDao {

    boolean  addProduct(CProduct cProduct);

    boolean updateProduct(CProduct cProduct);

    CProduct findOneProduct(String productId);

    List<CProduct> queryProductList(ProductCondition cProduct);

}
